Skip to content

Conversation

@awilczyns
Copy link
Collaborator

Added parent class for common parameters and execution logic across RxTxApp, FFmpeg, and Gstreamer. Includes RxTxApp child class implementation.

@awilczyns awilczyns force-pushed the test-framework-refactor-rxtxapp branch 7 times, most recently from 73b77f9 to e77427c Compare October 28, 2025 13:22
Add parent class for common parameters and execution logic across RxTxApp, FFmpeg, and Gstreamer. Includes RxTxApp child class implementation.

Signed-off-by: Wilczynski, Andrzej <[email protected]>
@awilczyns awilczyns force-pushed the test-framework-refactor-rxtxapp branch 6 times, most recently from c225d8a to 1db3b68 Compare October 28, 2025 18:51
@awilczyns awilczyns marked this pull request as ready for review October 28, 2025 19:11
Comment on lines +22 to +23
"video": "rawvideo",
"audio": "pcm_s24le",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope
The names are wrong :<

There is no "comparison" between the audio st20 (without pipeline) in ffmpeg

types should be none

Comment on lines +29 to +30
"video": "mtl_video",
"audio": "mtl_audio",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't exist like in ffmpeg

Comment on lines +34 to +43
FRAMERATE_TO_VIDEO_FORMAT_MAP = {
"p60": "i1080p60",
"p59": "i1080p59",
"p50": "i1080p50",
"p30": "i1080p30",
"p29": "i1080p29",
"p25": "i1080p25",
"p24": "i1080p24",
"p23": "i1080p23",
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not used anywhere?
I also don't think it's right
Where do we have such strings ? "i1080p29" ?


# Default network configuration values
DEFAULT_NETWORK_CONFIG = {
"nic_port": "0000:31:01.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i wouldn't setthe default NIC port

It's gonna be kinda hard to debug when this pops up,
I would leave this as None.

We have a mechanism for getting the PCI port in this framework

I think this could be confusing
Feel free to disagree with me

Comment on lines +58 to +64
"st20p_port": 20000,
"st22p_port": 20000,
"st30p_port": 30000,
"video_port": 20000,
"audio_port": 30000,
"ancillary_port": 40000,
"fastmetadata_port": 40000,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have so many ports :< Please separate all types :( It's def. gonna be easier down the line
Why repeat the ports set us up for failure?

RXTXAPP_PARAM_MAP = {
# Network parameters
"source_ip": "ip",
"destination_ip": "dip",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets use "ip",
it's gonna be easier and both work
"dip" and "ip",
"sip" was replaced with "ip" too

# Maps universal parameter names to application-specific names

# RxTxApp parameter mapping
RXTXAPP_PARAM_MAP = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have a mix of command line arguments and input config parameters here is that fine ?
its can be a little hard to implement?
im fine with this if you are fine with this

Comment on lines +88 to +89
config_file_path = os.path.abspath(
DEFAULT_NETWORK_CONFIG["default_config_file"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will not work on other hosts ?

Comment on lines +47 to +50
log_dir = os.path.join(os.getcwd(), LOG_FOLDER, "latest")
os.makedirs(log_dir, exist_ok=True)
out_file_url = os.path.join(log_dir, "out.yuv")
host = list(hosts.values())[0]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again other not supported on other hosts

Comment on lines +35 to +45
os.path.join(media, media_file_info["filename"])
if media
else media_file_info["filename"]
)
# Ensure kahawai.json (plugin configuration) is available in build cwd so st22 encoder can load plugins
kahawai_src = os.path.abspath(
os.path.join(os.path.dirname(__file__), "../../../../../..", "kahawai.json")
)
kahawai_dst = os.path.join(build, "kahawai.json")
try:
if os.path.exists(kahawai_src) and not os.path.exists(kahawai_dst):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

os not supported on other hosts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants